package group.systemdesign.Config;

import group.systemdesign.Pojo.Video;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
@Configuration
public class VideoConfig {
    private List<Video> history = new ArrayList<>();
    private List<Video> collection = new ArrayList<>();
    public void addVideoToHistory(Video video) {
        history.add(video);
    }
    public void addCollection(Video video) {
        collection.add(video);
    }
}
